package models

import "time"

var MajorCategoryType map[int]string

// 专业分类
type MajorCategory struct {
	Id               int64           `xorm:"pk autoincr" json:"majorCategoryId"`
	CategoryType     int             `xorm:"comment('专业分类类型 0未知 1本科 2专科')" json:"majorCategoryType"`
	ParentId         int64           `xorm:"comment('上级分类id')" json:"majorCategoryParentId"`
	Name             string          `xorm:"comment('专业分类名称')" json:"majorCategoryName"`
	Created          time.Time       `xorm:"created comment('创建时间')" json:"-"`
	Deleted          time.Time       `xorm:"deleted comment('删除时间')" json:"-"`
	Children         []MajorCategory `xorm:"-" json:"children"`
	MajorList        []Major         `xorm:"-" json:"majorList"`
	CategoryTypeShow string          `xorm:"-" json:"categoryTypeShow"`
}

func init() {
	MajorCategoryType = map[int]string{
		0: "未知",
		1: "本科",
		2: "专科",
	}
}
